package com.gz.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName t_book
 */
@TableName(value ="t_book")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book implements Serializable {
    private Long id;
    private String name;
    private Integer typeId;
    private String publisher;
    private Date publicationDate;
    private String author;
    private Double price;
    private String detail;
    private String imgSrc;
    private Integer collectionCount;
    private Integer storeCount;
    private Integer buyCount;
    private Integer readCount;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Integer state;
    @Version
    private Integer version;
}